import request from '@/utils/request'

// 查询政策分类信息列表
export function listArticle_policy(query) {
  return request({
    url: '/article/article_policy/list',
    method: 'get',
    params: query
  })
}

export function getAllPolicy() {
  return request({
    url: '/article/article_policy/selectAllPolicy',
    method: 'get',
  })
}

export function getWebUrlList() {
  return request({
    url: '/article/article_policy/getWebUrlList',
    method: 'get',
  })
}


export function selectPolicyTree() {
  return request({
    url: '/article/article_policy/selectPolicyTree',
    method: 'get'
  })
}


// 查询政策分类信息详细
export function getArticle_policy(articleId) {
  return request({
    url: '/article/article_policy/' + articleId,
    method: 'get'
  })
}

// 新增政策分类信息
export function addArticle_policy(data) {
  return request({
    url: '/article/article_policy',
    method: 'post',
    data: data
  })
}

// 修改政策分类信息
export function updateArticle_policy(data) {
  return request({
    url: '/article/article_policy',
    method: 'put',
    data: data
  })
}

export function delArticle_policy(articleId) {
  return request({
    url: '/article/article_policy/' + articleId,
    method: 'delete'
  })
}

// 政策复制
export function copyArticle_policy(articleId) {
  return request({
    url: '/article/article_policy/copy',
    method: 'post',
    data: {"articleId": articleId}
  })
}
